import Vue from 'vue';
import Router from 'vue-router';
import Home from './home/home';

Vue.use(Router);
const router = new Router({
    mode: 'hash',
    base: process.env.BASE_URL,
    linkActiveClass: 'active-link',
    linkExactActiveClass: 'exact-active-link',
    routes: [...Home],
    scrollBehavior(to, from, savedPosition) {
        if (savedPosition) {
            return savedPosition;
        } else {
            return { x: 0, y: 0 }
        }
    }
});

export default router;